package com.test.design.pattern.flyweight;

/**
 * @ClasName AbstractBox
 * @Descripution TODO
 * @Author leikw
 * @Date 2021/12/18 17:09
 * @Version V1.0
 */
public abstract class AbstractBox {


    //获取图形的方法
    public abstract String getShape();

    //显示图形及颜色
    public void display(String color) {
        System.out.println("方块形状：" + getShape() + ", 颜色：" + color);
    }

}
